Issue 5 - 09 September 2009 Go Back

Error “Invalid OS Version”

If you are getting error Invalid OS Version and you can’t build or publish your application using Visual C# Express 2008 edition the simplest way to fix this problem is to set an explicit value for OSVersion in your project file.

The following shows all steps to add change to your C# project file:


    1. Go to you project directory in the file system;
    2. Find the file <your project name>.csproj;
    3. Open the project using Notepad or any other text editors;
    4. Add <OSVersion /> inside the first <PropertyGroup> tag;

You will have something like below:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <OSVersion />
…….
  </PropertyGroup>
            ……..

 




© 2011 E-SIGHT PTY.LTD. Mentone Vic 3194 Melbourne                       ::Error Invalid OS Version ::|    Home    |    Contact Us    |    Sitemap    |